/**
 * @(#)Message.java, Sep 12, 2012. 
 * 
 * Copyright 2012 Yodao, Inc. All rights reserved.
 * YODAO PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.buaaer.mina;

import java.io.Serializable;

/**
 * the data package transfered between client and server
 * 
 * @author wangheng
 *
 */
public class DataPackage implements Serializable{
    
    private static final long serialVersionUID = 2790794173246624641L;

    private long seqId;
    
    private Object object;
    
    public DataPackage(long seqId, Object object) {
        this.seqId = seqId;
        this.object = object;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }

    public long getSeqId() {
        return seqId;
    }

    public void setSeqId(long seqId) {
        this.seqId = seqId;
    }

    @Override
    public String toString() {
        return "DataPackage [seqId=" + this.seqId + ", object=" + this.object + "]";
    }
    
    

}
